package com.knowledge.plus.设计模式.建造者模式;

import com.knowledge.plus.设计模式.建造者模式.impl.ApartmentBuilder;
import com.knowledge.plus.设计模式.建造者模式.impl.HouseBuilder;

/**
 * 建造者模式-实际施工
 *
 * @author TPF
 * @since 2023/12/12
 */
public class Client {

    public static void main(String[] args) {
        Director director = new Director();

        // 监理别墅施工队
        director.setBuilder(new HouseBuilder());
        System.out.println(director.direct());

        // 监理公寓施工队
        director.setBuilder(new ApartmentBuilder());
        System.out.println(director.direct());
    }

}
